package com.UnionPayCenter.ali.manager;

import com.alipay.api.AlipayApiException;
import com.alipay.api.response.AlipaySystemOauthTokenResponse;
import com.alipay.api.response.AlipayUserInfoShareResponse;

import java.security.PrivateKey;

/**
 * @author noah
 * @since 1.0.0, 2019/09/09
 */
public interface AliManager {

     /**
      * 获取token信息
      * @param authCode
      * @return
      * @throws AlipayApiException
      */
     AlipaySystemOauthTokenResponse outhToken (String authCode) throws AlipayApiException;


     /**
      * 获取用户信息
      * @param accessToken
      * @return
      */
     AlipayUserInfoShareResponse getAliUserInfo (String accessToken) throws AlipayApiException;
}
